package com.sanley.piss.model.po;

import com.sanley.piss.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
 * @author 张凯大天才
 */
@ToString
@EqualsAndHashCode
@Data
@ApiModel(value = "组织表",description = "组织结构说明")
public class Organization extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 197705568647651187L;

    @ApiModelProperty(value = "组织名称")
    @NotBlank(message = "组织名称不能为空")
    private String orgName;

    @ApiModelProperty(value = "组织代码")
    @NotBlank(message = "组织代码不能为空")
    private String orgCode;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "账号状态   0：正常  1：锁定  2：禁用",hidden = true)
    private Integer state;

    @ApiModelProperty(value = "部门电话")
    @NotNull(message = "部门电话不能为空")
    private Integer officeTel;
}